package triggerhelper.tabs;

import java.awt.Color;
import javax.swing.*;

public class TriggerDataTab extends javax.swing.JPanel {

    /** Creates new form TriggerData */
    public TriggerDataTab() {
        initComponents();
        dNewTrig.pack();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        dNewTrig = new javax.swing.JDialog();
        jPanel1 = new javax.swing.JPanel();
        dialog_cSimpleTrig = new javax.swing.JCheckBox();
        dialog_fTrigName = new javax.swing.JTextField();
        dialog_lQuestion = new javax.swing.JLabel();
        dialog_bOk = new javax.swing.JButton();
        dialog_bHelp = new javax.swing.JButton();
        dialog_bCancel = new javax.swing.JButton();
        jLabel1 = new javax.swing.JLabel();
        pTrigData = new javax.swing.JPanel();
        lTriggerName = new javax.swing.JLabel();
        fTrigName = new javax.swing.JTextField();
        bSave = new javax.swing.JButton();
        lOptions = new javax.swing.JLabel();
        cbOptions = new javax.swing.JComboBox();
        bHelp = new javax.swing.JButton();
        lProjectTriggers = new javax.swing.JLabel();
        separator = new javax.swing.JSeparator();
        bNewTrig = new javax.swing.JButton();
        bDelete = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        listTriggers = new triggerhelper.tabs.DList();
        bSubmit = new javax.swing.JButton();

        dNewTrig.setTitle("Input");
        dNewTrig.setModalExclusionType(java.awt.Dialog.ModalExclusionType.APPLICATION_EXCLUDE);
        dNewTrig.setModalityType(java.awt.Dialog.ModalityType.APPLICATION_MODAL);
        dNewTrig.setResizable(false);

        dialog_cSimpleTrig.setText("Simple Trigger?");

        dialog_fTrigName.setVerifyInputWhenFocusTarget(false);

        dialog_lQuestion.setFont(new java.awt.Font("Tahoma", 0, 12));
        dialog_lQuestion.setText("Enter name of trigger");

        dialog_bOk.setText("Ok");

        dialog_bHelp.setText("Help");
        dialog_bHelp.setFocusable(false);

        dialog_bCancel.setText("Cancel");

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/questionIcon.PNG"))); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(dialog_bOk, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(dialog_bCancel)
                        .addGap(18, 18, 18)
                        .addComponent(dialog_bHelp, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(dialog_lQuestion)
                            .addComponent(dialog_fTrigName, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(dialog_cSimpleTrig, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(15, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(dialog_lQuestion)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dialog_fTrigName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(dialog_cSimpleTrig)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(dialog_bOk)
                    .addComponent(dialog_bCancel)
                    .addComponent(dialog_bHelp))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout dNewTrigLayout = new javax.swing.GroupLayout(dNewTrig.getContentPane());
        dNewTrig.getContentPane().setLayout(dNewTrigLayout);
        dNewTrigLayout.setHorizontalGroup(
            dNewTrigLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        dNewTrigLayout.setVerticalGroup(
            dNewTrigLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pTrigData.setBackground(new java.awt.Color(255, 223, 223));

        lTriggerName.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        lTriggerName.setForeground(new java.awt.Color(102, 19, 19));
        lTriggerName.setText("Trigger name");

        fTrigName.setText("<name>");
        fTrigName.setEnabled(false);

        bSave.setText("Save name");
        bSave.setEnabled(false);
        bSave.setFocusable(false);

        lOptions.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lOptions.setForeground(new java.awt.Color(102, 19, 19));
        lOptions.setText("Options:");

        cbOptions.setBackground(new Color(255, 255, 255));
        cbOptions.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "View trigger txt", "View project txt" }));
        cbOptions.setEnabled(false);
        cbOptions.setFocusable(false);

        bHelp.setText("Help");
        bHelp.setFocusable(false);

        lProjectTriggers.setFont(new java.awt.Font("Tahoma", 1, 12));
        lProjectTriggers.setForeground(new java.awt.Color(102, 19, 19));
        lProjectTriggers.setText("Project's Triggers");

        separator.setForeground(new java.awt.Color(102, 19, 19));
        separator.setOrientation(javax.swing.SwingConstants.VERTICAL);

        bNewTrig.setText("New Trigger");

        bDelete.setText("Delete");
        bDelete.setEnabled(false);

        listTriggers.setModel(new javax.swing.DefaultListModel());
        listTriggers.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        listTriggers.setCellRenderer(new triggerhelper.helperClasses.CustomListCellRenderer());
        jScrollPane1.setViewportView(listTriggers);

        bSubmit.setText("Submit");
        bSubmit.setEnabled(false);
        bSubmit.setFocusable(false);

        javax.swing.GroupLayout pTrigDataLayout = new javax.swing.GroupLayout(pTrigData);
        pTrigData.setLayout(pTrigDataLayout);
        pTrigDataLayout.setHorizontalGroup(
            pTrigDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pTrigDataLayout.createSequentialGroup()
                .addGroup(pTrigDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pTrigDataLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(pTrigDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(pTrigDataLayout.createSequentialGroup()
                                .addComponent(bNewTrig)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)
                                .addComponent(bDelete))
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(pTrigDataLayout.createSequentialGroup()
                        .addGap(49, 49, 49)
                        .addComponent(lProjectTriggers)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(separator, javax.swing.GroupLayout.PREFERRED_SIZE, 4, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pTrigDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(pTrigDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(lTriggerName, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(fTrigName, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(bSave, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(lOptions, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(cbOptions, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(bSubmit, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(bHelp))
                .addContainerGap())
        );
        pTrigDataLayout.setVerticalGroup(
            pTrigDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pTrigDataLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(pTrigDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(separator, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)
                    .addGroup(pTrigDataLayout.createSequentialGroup()
                        .addComponent(lTriggerName)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(fTrigName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bSave)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(lOptions)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(cbOptions, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(bSubmit)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(bHelp))
                    .addGroup(pTrigDataLayout.createSequentialGroup()
                        .addComponent(lProjectTriggers)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(pTrigDataLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(bNewTrig)
                            .addComponent(bDelete))))
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pTrigData, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pTrigData, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents

    //Getter methods
    public JList getListTriggers() {
        return listTriggers;
    }public JTextField getfTrigName() {
        return fTrigName;
    } public JButton getbDelete(){
        return bDelete;
    }public JButton getbHelp() {
        return bHelp;
    }public JButton getbNewTrig() {
        return bNewTrig;
    }public JButton getbSave() {
        return bSave;
    }public JButton getbSubmit() {
        return bSubmit;
    }public JComboBox getCbOptions() {
        return cbOptions;
    }
    
    public JDialog getdNewTrig() {
        return dNewTrig;
    }public JTextField getDialog_fTrigName() {
        return dialog_fTrigName;
    }public JButton getDialog_bOk() {
        return dialog_bOk;
    }public JButton getDialog_bCancel() {
        return dialog_bCancel;
    }public JButton getDialog_bHelp() {
        return dialog_bHelp;
    }public JCheckBox getDialog_cSimpleTrig() {
        return dialog_cSimpleTrig;
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bDelete;
    private javax.swing.JButton bHelp;
    private javax.swing.JButton bNewTrig;
    private javax.swing.JButton bSave;
    private javax.swing.JButton bSubmit;
    private javax.swing.JComboBox cbOptions;
    private javax.swing.JDialog dNewTrig;
    private javax.swing.JButton dialog_bCancel;
    private javax.swing.JButton dialog_bHelp;
    private javax.swing.JButton dialog_bOk;
    private javax.swing.JCheckBox dialog_cSimpleTrig;
    private javax.swing.JTextField dialog_fTrigName;
    private javax.swing.JLabel dialog_lQuestion;
    private javax.swing.JTextField fTrigName;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lOptions;
    private javax.swing.JLabel lProjectTriggers;
    private javax.swing.JLabel lTriggerName;
    private triggerhelper.tabs.DList listTriggers;
    private javax.swing.JPanel pTrigData;
    private javax.swing.JSeparator separator;
    // End of variables declaration//GEN-END:variables
}
